home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
DDJMAG
/
DDJ9310.ZIP
/
DFPP03.ZIP
/
CONTROL.H
< prev
next >
Wrap
C/C++ Source or Header
|
1993-09-27
|
1KB
|
44 lines
// ---------- control.h
#ifndef CONTROL_H
#define CONTROL_H
#include "dfwindow.h"
class TextBox;
class Dialog;
class Control : public DFWindow {
Bool enabled; // true if control is enabled
protected:
unsigned shortcut;
static unsigned LatestShortcut;
public:
Control(const char *ttl,int lf,int tp,int ht,int wd,DFWindow *par)
: DFWindow(ttl, lf, tp, ht, wd, par)
{ OpenControl(); }
Control(const char *ttl, int ht, int wd, DFWindow *par)
: DFWindow(ttl, ht, wd, par)
{ OpenControl(); }
Control(int lf, int tp, int ht, int wd, DFWindow *par)
: DFWindow(lf, tp, ht, wd, par)
{ OpenControl(); }
Control(int ht,int wd,DFWindow *par) : DFWindow(ht,wd,par)
{ OpenControl(); }
Control(const char *ttl) : DFWindow(ttl)
{ OpenControl(); }
virtual void Keyboard(int key);
void OpenControl();
void Enable() { enabled = True; }
void Disable() { enabled = False; }
Bool isEnabled() { return enabled; }
virtual void ShortcutSelect();
virtual Bool SetFocus();
unsigned Shortcut() { return shortcut; }
virtual void Select();
virtual void Choose();
};
#endif